/*
**
** Copyright @ 2020 Joshua Branson <jbranso@member.fsf.org>
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 3 of the License, or (at
** your option) any later version.
**
** It is distributed in the hope that it will be useful, but
** WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program.  If not, see <http://www.gnu.org/licenses/>.
**
** The goal of this program is to make a mini math library.  The first
** objective is to find the distance between two points in the
** Cartesian X,Y plane.
*/

#include <stdio.h>
#include "structs.h"
#include "distance.h"

int main ()
{
  /* struct x_y_point a = { 0.0, 0.0 }; */
  /* struct x_y_point b = { 1.0, 0.0 };  */

  struct x_y_point a;
  struct x_y_point b;

  a.x = 0.0;
  a.y = 0.0;

  b.x = 0.0;
  b.y = 1.0;

  double distance = get_distance (a, b);

  printf ("Distance between two points is %f\n", distance);
  
  return 0;
}
